package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * The type Inorderinfo.
 */
public class Inorderinfo extends Common implements Serializable {
    private static final long serialVersionUID = 634821683942813926L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 商品id
     */
    private String pId;
    /**
     * 订单id
     */
    @TableField(value = "oId")
    private String oId;
    /**
     * 数量
     */
    private Integer quantity;
    /**
     * 费用
     */
    private Double cost;

    /**
     * To string string.
     *
     * @return the string
     */
    @Override
    public String toString() {
        return "Inorderinfo{" +
                "id='" + id + '\'' +
                ", pid=" + pId +
                ", oId=" + oId +
                ", quantity=" + quantity +
                ", cost=" + cost +
                '}';
    }

    /**
     * Gets serial version uid.
     *
     * @return the serial version uid
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /**
     * Gets id.
     *
     * @return the id
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets pid.
     *
     * @return the pid
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public String getpId() {
        return pId;
    }

    /**
     * Sets pid.
     *
     * @param pId the pid
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public void setpId(String pId) {
        this.pId = pId;
    }

    /**
     * Gets id.
     *
     * @return the id
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public String getoId() {
        return oId;
    }

    /**
     * Sets id.
     *
     * @param oId the o id
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public void setoId(String oId) {
        this.oId = oId;
    }

    /**
     * Gets quantity.
     *
     * @return the quantity
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * Sets quantity.
     *
     * @param quantity the quantity
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * Gets cost.
     *
     * @return the cost
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public Double getCost() {
        return cost;
    }

    /**
     * Sets cost.
     *
     * @param cost the cost
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public void setCost(Double cost) {
        this.cost = cost;
    }

    /**
     * Instantiates a new Inorderinfo.
     *
     * @author overlook
     * @date 2022 -04-16 20:30:43
     */
    public Inorderinfo() {
    }

    /**
     * Instantiates a new Inorderinfo.
     *
     * @param id       the id
     * @param pId      the pid
     * @param oId      the o id
     * @param quantity the quantity
     * @param cost     the cost
     * @author overlook
     * @date 2022 -04-16 20:30:44
     */
    public Inorderinfo(String id, String pId, String oId, Integer quantity, Double cost) {
        this.id = id;
        this.pId = pId;
        this.oId = oId;
        this.quantity = quantity;
        this.cost = cost;
    }
}

